import { config } from "shelljs"

let serviceList = [{
  "id": 124491,
  "gamename": "游戏名游戏名游戏名游（安卓）",
  "serviceName": "s136-清风拂柳",
  "serviceTime": "2020.02.29   18：30",
  "serviceFlag": "true",
  "icon": ''
},{
    "id": 124491,
    "gamename": "游戏名游戏名游戏名游（安卓）",
    "serviceName": "s136-清风拂柳",
    "serviceTime": "2020.02.29   18:30",
    "serviceFlag": "false",
    "icon": ''
  }]
let searchList = [
  [{
      id: 0,
      serviceName: "全部"
    }, {
      id: 1,
      serviceName: "大话西游(安卓)"
    },
    {
      id: 2,
      serviceName: "倩女幽魂(ios)"
    }
  ],
  [{
      id: 0,
      gameName: "全部"
    }, {
      id: 1,
      gameName: "大话西游(安卓)"
    },
    {
      id: 2,
      gameName: "倩女幽魂(ios)"
    }
  ]
 
]
let linkgame=[{
    id: 0,
    serviceName: "全部"
  }, {
    id: 1,
    serviceName: "大话西游(安卓)"
  },
  {
    id: 2,
    serviceName: "倩女幽魂(安卓)"
  }]
export default {
  getserviceList: config => { //列表数据
    return {
      code: 200,
      data: {
        total: 10,
        list: serviceList
      }
    }
  },
  getsearchList: config => { //搜索数据
    return {
      code: 200,
      data: {
        total: 10,
        list: searchList
      }
    }
  },
  addservice:config=>{//关联游戏
    return {
        code: 200,
        data: null
      }
  }
}
